// template.js you can generate
module.exports = {
  vueTemplate: componentName => {
    return `<template>
  <div class="${componentName}-comp-ct c_page">
    <van-nav-bar :title="componentName" left-arrow @click-left="goback">
      <van-icon name="search" slot="right" />
    </van-nav-bar>
    <div class="c_container">
      <span class="cfs" >{{componentName}}组件</span>
    </div>
  </div>
</template>
<script>
import Vue from 'vue';
import { Toast,Icon,NavBar  } from 'vant';
Vue.use(Toast).use(Icon).use(NavBar);
export default {
  name: '${componentName}',
  data() {
    return {
      componentName: '${componentName}'
    }
  },
  methods: {
    goback(){
      this.$router.back(-1);
    }
  }
}
</script>
<style lang="scss" scoped>
.${componentName}-comp-ct {
  .cfs{
    font-weight: bold;
  }
}
</style>
`
  },
 entryTemplate:  componentName => {
    return `import ${componentName} from './${componentName}.vue'
export default ${componentName}`}
}
